package org.anachronos.jeep.core.trace.impl;

import java.util.List;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlIDREF;
import javax.xml.bind.annotation.XmlType;

@XmlType
public class Method extends NamedElement {
	@XmlElement
	@XmlIDREF
	@SuppressWarnings("unused")
	private List<Class> argumentTypes;

	@XmlAttribute
	@XmlIDREF
	@SuppressWarnings("unused")
	private Class returnType;
	
	/**
	 * Required by jaxb
	 */
	public Method() {
	}

	public Method(final String name, final String id, final List<Class> argumentTypes, 
			final Class returnType) {
		super(name, id);
		this.argumentTypes = argumentTypes;
		this.returnType = returnType;
	}
}
